package com.blb.ioc.demo3;

public class ComputerFactoryTest {

    public static void main(String[] args) {
        ComputerFactory factory = new ComputerFactory();
        try {
            Computer computer = (Computer) factory.getBean(Computer.class);
            computer.start();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }
}
